﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MuYue.Log
{
    public class LogMessage
    {
        /// <summary>
        /// 从模型获取SQLite的插入语句
        /// </summary>
        /// <returns></returns>
        public string GetSQLiteInsertString() {
            return "";
        }

        public LogMessage(string message, LogLevel level) {
            this.time = DateTime.Now;
            this.message = message;
            this.level = level;
        }

        #region 日志创建时间
        private DateTime time;
        public DateTime CreateTime { get { return time; } }
        #endregion

        #region 日志等级
        private LogLevel level;
        public LogLevel MsgLevel { get { return level; } }
        #endregion

        #region 日志体
        private string message;
        public string Content { get { return message; } }
        #endregion

    }
}
